<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>权限管理</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
    <div class="min-h-screen">
        <header class="bg-white shadow">
            <div class="max-w-7xl mx-auto py-6 px-4">
                <h1 class="text-2xl font-bold text-gray-900">权限管理</h1>
            </div>
        </header>

        <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <!-- 操作栏 -->
            <div class="mb-6 flex justify-between items-center">
                <div class="flex space-x-4">
                    <input type="text" placeholder="请输入权限名称" class="border rounded-md px-4 py-2 w-64">
                    <button class="px-4 py-2 bg-blue-600 text-white rounded-md">搜索</button>
                </div>
                <button class="px-4 py-2 bg-blue-600 text-white rounded-md flex items-center">
                    <svg class="h-5 w-5 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
                    </svg>
                    新增权限
                </button>
            </div>

            <!-- 权限列表 -->
            <div class="bg-white shadow rounded-lg overflow-hidden">
                <table class="min-w-full divide-y divide-gray-200">
                    <thead class="bg-gray-50">
                        <tr>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">权限名称</th>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">权限标识</th>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">权限类型</th>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">所属模块</th>
                            <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">创建时间</th>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                        </tr>
                    </thead>
                    <tbody class="bg-white divide-y divide-gray-200">
                        <!-- 订单管理权限 -->
                        <tr>
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">查看订单</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">order:view</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">功能权限</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">订单管理</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2024-01-01 12:00:00</td>
                            <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                <a href="#" class="text-blue-600 hover:text-blue-900">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 ml-4">删除</a>
                            </td>
                        </tr>

                        <tr>
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">处理订单</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">order:process</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">功能权限</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">订单管理</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2024-01-01 12:00:00</td>
                            <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                <a href="#" class="text-blue-600 hover:text-blue-900">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 ml-4">删除</a>
                            </td>
                        </tr>

                        <!-- 分销管理权限 -->
                        <tr>
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">查看分销员</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">distributor:view</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">功能权限</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">分销管理</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2024-01-02 10:30:00</td>
                            <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                <a href="#" class="text-blue-600 hover:text-blue-900">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 ml-4">删除</a>
                            </td>
                        </tr>

                        <tr>
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">佣金设置</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">commission:set</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">功能权限</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">分销管理</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2024-01-02 10:30:00</td>
                            <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                <a href="#" class="text-blue-600 hover:text-blue-900">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 ml-4">删除</a>
                            </td>
                        </tr>

                        <!-- 核销管理权限 -->
                        <tr>
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">查看成交员</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">verifier:view</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">功能权限</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">核销管理</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2024-01-03 15:45:00</td>
                            <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                <a href="#" class="text-blue-600 hover:text-blue-900">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 ml-4">删除</a>
                            </td>
                        </tr>

                        <tr>
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">核销记录</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">verification:record</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">功能权限</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">核销管理</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2024-01-03 15:45:00</td>
                            <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                                <a href="#" class="text-blue-600 hover:text-blue-900">编辑</a>
                                <a href="#" class="text-red-600 hover:text-red-900 ml-4">删除</a>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <!-- 分页 -->
                <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
                    <div class="flex-1 flex justify-between sm:hidden">
                        <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">上一页</a>
                        <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">下一页</a>
                    </div>
                    <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
                        <div>
                            <p class="text-sm text-gray-700">
                                显示第
                                <span class="font-medium">1</span>
                                到
                                <span class="font-medium">6</span>
                                条，共
                                <span class="font-medium">6</span>
                                条
                            </p>
                        </div>
                        <div>
                            <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
                                <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                                    <span class="sr-only">上一页</span>
                                    <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                                        <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
                                    </svg>
                                </a>
                                <a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
                                <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                                    <span class="sr-only">下一页</span>
                                    <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                                        <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
                                    </svg>
                                </a>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</body>
</html>